package com.c.authen;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication
@MapperScan(basePackages = {"com.c.authen.modules.*.dao"})
@ImportResource(value = { "classpath:dubbo-provider.xml" })
public class AuthenServiceMain extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(AuthenServiceMain.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(AuthenServiceMain.class);
    }
}

